﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="WISD.CarFriend.Web.Admin.Module.EnterpriseUnionManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>商家联盟管理</title>
    <link rel="stylesheet" type="text/css" href="../../Content/CSS/ClientCSS/Style.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/CSS/CommonCSS/Pagination.css" />
    <script type="text/javascript" src="../../Scripts/CommonScripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../Scripts/CommonScripts/jquery.pagination.js"></script>
    <script type="text/javascript" src="../../Scripts/CommonScripts/CheckAll.js"></script>
    <script type="text/javascript">
        $(function() {
            //分页参数设置
            $("#Pagination").pagination(<%=PageCount %>, {
                callback: pageselectCallback,
                prev_text: "« 上一页",
                next_text: "下一页 »",
                items_per_page:<%=PageSize %>,
		        num_display_entries:3,
		        current_page:<%=CurrentPageIndex %>,
		        num_edge_entries:2,
		        link_to:"?page=__id__<%=Keywords %>"
           });
        });
        
        function pageselectCallback(page_id, jq) {
            //alert(page_id); 回调函数
        }
        
        $(function() {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function() {
			        $(this).addClass("tr_hover_col");
			    },
			    function() {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding:10px;">
    <form id="form1" runat="server">
        <div class="navigation"><span class="add"><a href="Add.aspx">新增商家联盟</a></span><b>您当前的位置：首页 &gt; 商家联盟管理 &gt; 商家联盟列表</b></div>
        <div class="spClear"></div>
        <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
        <HeaderTemplate>
        <div class="pro_img_list">
          <ul>
          </HeaderTemplate>
            <ItemTemplate>
            <li>
              <div class="nTitle"><asp:CheckBox ID="chkId" CssClass="checkall" runat="server" style="vertical-align:middle;" /><asp:Label ID="lblId" runat="server" Text='<%#Eval("EnterUnionID")%>' style="display:none;"></asp:Label><%#WISD.Common.StringHandle.CutString(Eval("Title").ToString(), 14)%></div>
              <div class="nImg"><a title="<%#Eval("Title")%>" href="Edit.aspx?id=<%#Eval("EnterUnionID") %>"><img src="../../Tools/ImageLoad.ashx?w=120&h=120&gurl=<%# System.Web.VirtualPathUtility.ToAbsolute("~") + Eval("ImagePath") %>" /></a></div>
              <div class="nBtm">
                <span class="right">
                  <asp:ImageButton ID="ibtnDel" CommandName="ibtnDel" runat="server" ImageUrl='../../Content/Images/disable.gif' ToolTip='删除图片' OnClientClick="return confirm( '确定要删除这些记录吗？ ');" />
                </span>
                <span class="right">
                  <a href="Edit.aspx?id=<%#Eval("EnterUnionID") %>"><img src="../../Content/Images/ico-6.png" title="修改" /></a>
                </span>
                <span class="right">
                  <a href="<%#Eval("URL") %>" target="_blank"><img src="../../Content/Images/img_Show.gif" title="预览" /></a>
                </span>
              </div>
            </li>
            </ItemTemplate>
        <FooterTemplate>
          </ul>
        </div> 
        </FooterTemplate>
        </asp:Repeater>
        
        <div class="spClear"></div>
        <div style="line-height:30px;height:30px;">
            <div id="Pagination" class="right flickr"></div>
            <div class="left">
                <span class="btn_all" onclick="checkAll(this);">全选</span>
                <span class="btn_bg">
                  <asp:LinkButton ID="lbtnDel" runat="server" 
                    OnClientClick="return confirm( '确定要删除这些记录吗？ ');" onclick="lbtnDel_Click">删 除</asp:LinkButton>
                </span>
            </div>
	    </div>
    </form>
</body>
</html>
